package com.xdxc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xdxc.model.dto.QuestionForm;
import com.xdxc.model.entity.Question;
import com.xdxc.response.Result;
import com.xdxc.vo.QuestionWithOptionsVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface QuestionService  extends IService<Question> {
    List<QuestionWithOptionsVo> getQuestionBatchByIdList(List<Long> idList, Boolean haveAnalysis);

    List<QuestionWithOptionsVo> getQuestionBatchByIdListWithCorrectAnswer(List<Long> idList);

     Result<List<QuestionWithOptionsVo>>  questionPage(Integer page, Integer size);

    QuestionWithOptionsVo getQuestionWithOptionById(Long quId, Boolean haveAnalysis);

    QuestionWithOptionsVo getQuestionByIdWithCorrectAnswer(Long quId);

    List<QuestionWithOptionsVo> getQuestionWithCorrectAnswerPage(List<Question> questionList,  List<Long> idList);




}
